namespace SmartSoft.Invoices
{
    using SmartSoft;
    using SmartSoft.Controls;
    using SmartSoft.Controls.ChildGridControls;
    using SmartSoft.ADP;
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;

    public class FormCTBGViewer : FormHistoryViewer
    {
        private IContainer components;
        private GridDetail grdDetail;
        private LabelControl lblDesc_EN;
        private LabelControl lblDia_Chi;
        private LabelControl lblDien_Giai;
        private LabelControl lblGhi_Chu;
        private LabelControl lblMa_Dt;
        private LabelControl lblMa_KhoN;
        private CTKHODataAccess oMethod = new CTKHODataAccess();
        private TextControl txtDesc_EN;
        private TextControl txtDia_Chi;
        private TextControl txtDien_Giai;
        private TextControl txtGhi_Chu;
        private TextSearch txtMa_Dt;
        private TextSearch txtMa_KhoN;
        private TextControl txtTen_Dt;
        private TextControl txtTen_BpX;
        private TextSearch txtMa_BpX;
        private LabelControl lblMa_BpX;
        private TextControl txtTen_CvX;
        private TextSearch txtMa_CvX;
        private LabelControl lblMa_Cv;
        private TextControl txtTen_CvN;
        private TextSearch txtMa_CvN;
        private LabelControl lblMa_CvN;
        private TextControl txtTen_BpN;
        private TextSearch txtMa_BpN;
        private LabelControl lblMa_BpN;
        private TextControl txtTen_DtN;
        private TextSearch txtMa_DtN;
        private LabelControl lblMa_DtN;
        private DataGridViewTextBoxColumn Column3;
        private DataGridViewTextBoxColumn So_Hieu;
        private DataGridViewTextBoxColumn Column4;
        private SearchColumn Column9;
        private DataGridViewTextBoxColumn Column10;
        private OptionColumn Column11;
        private DataGridViewTextBoxColumn Column23;
        private NumericColumn Column22;
        private TextControl txtTen_KhoN;

        public FormCTBGViewer()
        {
            this.InitializeComponent();
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
            this.txtDesc_EN = new SmartSoft.Controls.TextControl();
            this.txtDien_Giai = new SmartSoft.Controls.TextControl();
            this.lblDesc_EN = new SmartSoft.Controls.LabelControl();
            this.lblDien_Giai = new SmartSoft.Controls.LabelControl();
            this.txtDia_Chi = new SmartSoft.Controls.TextControl();
            this.txtTen_Dt = new SmartSoft.Controls.TextControl();
            this.txtMa_Dt = new SmartSoft.Controls.TextSearch();
            this.lblDia_Chi = new SmartSoft.Controls.LabelControl();
            this.lblMa_Dt = new SmartSoft.Controls.LabelControl();
            this.lblMa_KhoN = new SmartSoft.Controls.LabelControl();
            this.grdDetail = new SmartSoft.Controls.GridDetail();
            this.txtMa_KhoN = new SmartSoft.Controls.TextSearch();
            this.txtTen_KhoN = new SmartSoft.Controls.TextControl();
            this.lblGhi_Chu = new SmartSoft.Controls.LabelControl();
            this.txtGhi_Chu = new SmartSoft.Controls.TextControl();
            this.txtTen_BpX = new SmartSoft.Controls.TextControl();
            this.txtMa_BpX = new SmartSoft.Controls.TextSearch();
            this.lblMa_BpX = new SmartSoft.Controls.LabelControl();
            this.txtTen_CvX = new SmartSoft.Controls.TextControl();
            this.txtMa_CvX = new SmartSoft.Controls.TextSearch();
            this.lblMa_Cv = new SmartSoft.Controls.LabelControl();
            this.txtTen_CvN = new SmartSoft.Controls.TextControl();
            this.txtMa_CvN = new SmartSoft.Controls.TextSearch();
            this.lblMa_CvN = new SmartSoft.Controls.LabelControl();
            this.txtTen_BpN = new SmartSoft.Controls.TextControl();
            this.txtMa_BpN = new SmartSoft.Controls.TextSearch();
            this.lblMa_BpN = new SmartSoft.Controls.LabelControl();
            this.txtTen_DtN = new SmartSoft.Controls.TextControl();
            this.txtMa_DtN = new SmartSoft.Controls.TextSearch();
            this.lblMa_DtN = new SmartSoft.Controls.LabelControl();
            this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.So_Hieu = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.Column9 = new SmartSoft.Controls.ChildGridControls.SearchColumn();
            this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.Column11 = new SmartSoft.Controls.ChildGridControls.OptionColumn();
            this.Column23 = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.Column22 = new SmartSoft.Controls.ChildGridControls.NumericColumn();
            ((System.ComponentModel.ISupportInitialize)(this.grdDetail)).BeginInit();
            this.SuspendLayout();
            // 
            // txtMa_Loai1
            // 
            this.txtMa_Loai1.TabIndex = 11;
            // 
            // txtMa_Loai2
            // 
            this.txtMa_Loai2.TabIndex = 12;
            // 
            // txtMa_Loai3
            // 
            this.txtMa_Loai3.TabIndex = 13;
            // 
            // txtNgay_Ct
            // 
            this.txtNgay_Ct.TabIndex = 1;
            // 
            // txtNgay_Ps
            // 
            this.txtNgay_Ps.TabIndex = 0;
            // 
            // txtSo_Ct
            // 
            this.txtSo_Ct.TabIndex = 2;
            // 
            // txtDesc_EN
            // 
            this.txtDesc_EN.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.txtDesc_EN.CheckTextSearched = false;
            this.txtDesc_EN.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtDesc_EN.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtDesc_EN.Location = new System.Drawing.Point(486, 160);
            this.txtDesc_EN.MaxLength = 254;
            this.txtDesc_EN.Name = "txtDesc_EN";
            this.txtDesc_EN.OldValue = null;
            this.txtDesc_EN.ReadOnly = true;
            this.txtDesc_EN.Size = new System.Drawing.Size(295, 20);
            this.txtDesc_EN.TabIndex = 7;
            this.txtDesc_EN.UserTextLength = SmartSoft.AppInstance.TextControlLength.InvoiceDescription;
            this.txtDesc_EN.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.Right;
            this.txtDesc_EN.Value = global::SmartSoft.ReportForms.FormVTH02BViewer.txtTen_Nh_Vt_Value;
            // 
            // txtDien_Giai
            // 
            this.txtDien_Giai.CheckTextSearched = false;
            this.txtDien_Giai.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtDien_Giai.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtDien_Giai.Location = new System.Drawing.Point(99, 160);
            this.txtDien_Giai.MaxLength = 254;
            this.txtDien_Giai.Name = "txtDien_Giai";
            this.txtDien_Giai.OldValue = null;
            this.txtDien_Giai.ReadOnly = true;
            this.txtDien_Giai.Size = new System.Drawing.Size(296, 20);
            this.txtDien_Giai.TabIndex = 6;
            this.txtDien_Giai.UserTextLength = SmartSoft.AppInstance.TextControlLength.InvoiceDescription;
            this.txtDien_Giai.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.Right;
            this.txtDien_Giai.Value = global::SmartSoft.ReportForms.FormVTH02BViewer.txtTen_Nh_Vt_Value;
            // 
            // lblDesc_EN
            // 
            this.lblDesc_EN.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.lblDesc_EN.AutoSize = true;
            this.lblDesc_EN.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblDesc_EN.Location = new System.Drawing.Point(409, 163);
            this.lblDesc_EN.Name = "lblDesc_EN";
            this.lblDesc_EN.Size = new System.Drawing.Size(71, 14);
            this.lblDesc_EN.TabIndex = 80;
            this.lblDesc_EN.Text = "Diễn giải (EN)";
            // 
            // lblDien_Giai
            // 
            this.lblDien_Giai.AutoSize = true;
            this.lblDien_Giai.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblDien_Giai.Location = new System.Drawing.Point(11, 163);
            this.lblDien_Giai.Name = "lblDien_Giai";
            this.lblDien_Giai.Size = new System.Drawing.Size(73, 14);
            this.lblDien_Giai.TabIndex = 81;
            this.lblDien_Giai.Text = "Diễn giải (VN)";
            // 
            // txtDia_Chi
            // 
            this.txtDia_Chi.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.txtDia_Chi.CheckTextSearched = false;
            this.txtDia_Chi.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtDia_Chi.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtDia_Chi.Location = new System.Drawing.Point(99, 94);
            this.txtDia_Chi.MaxLength = 128;
            this.txtDia_Chi.Name = "txtDia_Chi";
            this.txtDia_Chi.OldValue = null;
            this.txtDia_Chi.ReadOnly = true;
            this.txtDia_Chi.Size = new System.Drawing.Size(295, 20);
            this.txtDia_Chi.TabIndex = 5;
            this.txtDia_Chi.UserTextLength = SmartSoft.AppInstance.TextControlLength.ItemDescription;
            this.txtDia_Chi.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.Right;
            this.txtDia_Chi.Value = global::SmartSoft.ReportForms.FormVTH02BViewer.txtTen_Nh_Vt_Value;
            // 
            // txtTen_Dt
            // 
            this.txtTen_Dt.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_Dt.BackColor = System.Drawing.SystemColors.Control;
            this.txtTen_Dt.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Dt.CheckTextSearched = false;
            this.txtTen_Dt.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Dt.Enabled = false;
            this.txtTen_Dt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Dt.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Dt.Location = new System.Drawing.Point(223, 75);
            this.txtTen_Dt.Name = "txtTen_Dt";
            this.txtTen_Dt.OldValue = null;
            this.txtTen_Dt.Size = new System.Drawing.Size(172, 13);
            this.txtTen_Dt.TabIndex = 97;
            this.txtTen_Dt.UserTextLength = SmartSoft.AppInstance.TextControlLength.None;
            this.txtTen_Dt.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_Dt.Value = global::SmartSoft.ReportForms.FormVTH02BViewer.txtTen_Nh_Vt_Value;
            // 
            // txtMa_Dt
            // 
            this.txtMa_Dt.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtMa_Dt.CheckTextSearched = false;
            this.txtMa_Dt.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtMa_Dt.FieldDisplay = "Ten_Dt";
            this.txtMa_Dt.FirstFilter = "Is_Stop = \'1\'";
            this.txtMa_Dt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMa_Dt.Location = new System.Drawing.Point(99, 72);
            this.txtMa_Dt.MaxLength = 32;
            this.txtMa_Dt.Name = "txtMa_Dt";
            this.txtMa_Dt.OldValue = null;
            this.txtMa_Dt.ReadOnly = true;
            this.txtMa_Dt.Size = new System.Drawing.Size(118, 20);
            this.txtMa_Dt.TabIndex = 3;
            this.txtMa_Dt.TableName = "DMDT";
            this.txtMa_Dt.TextDisplay = this.txtTen_Dt;
            this.txtMa_Dt.UserTextLength = SmartSoft.AppInstance.TextControlLength.ItemCode;
            this.txtMa_Dt.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.All;
            this.txtMa_Dt.Value = global::SmartSoft.ReportForms.FormVTH02BViewer.txtTen_Nh_Vt_Value;
            // 
            // lblDia_Chi
            // 
            this.lblDia_Chi.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.lblDia_Chi.AutoSize = true;
            this.lblDia_Chi.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblDia_Chi.Location = new System.Drawing.Point(12, 96);
            this.lblDia_Chi.Name = "lblDia_Chi";
            this.lblDia_Chi.Size = new System.Drawing.Size(40, 14);
            this.lblDia_Chi.TabIndex = 95;
            this.lblDia_Chi.Text = "Địa chỉ";
            // 
            // lblMa_Dt
            // 
            this.lblMa_Dt.AutoSize = true;
            this.lblMa_Dt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblMa_Dt.Location = new System.Drawing.Point(12, 75);
            this.lblMa_Dt.Name = "lblMa_Dt";
            this.lblMa_Dt.Size = new System.Drawing.Size(59, 14);
            this.lblMa_Dt.TabIndex = 94;
            this.lblMa_Dt.Text = "Người giao";
            // 
            // lblMa_KhoN
            // 
            this.lblMa_KhoN.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.lblMa_KhoN.AutoSize = true;
            this.lblMa_KhoN.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblMa_KhoN.Location = new System.Drawing.Point(12, 470);
            this.lblMa_KhoN.Name = "lblMa_KhoN";
            this.lblMa_KhoN.Size = new System.Drawing.Size(53, 14);
            this.lblMa_KhoN.TabIndex = 99;
            this.lblMa_KhoN.Text = "Kho nhập";
            // 
            // grdDetail
            // 
            this.grdDetail.AllowUserToAddRows = false;
            this.grdDetail.AllowUserToDeleteRows = false;
            this.grdDetail.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.grdDetail.CheckAutoSize = true;
            this.grdDetail.CheckColor = false;
            this.grdDetail.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.grdDetail.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
            this.Column3,
            this.So_Hieu,
            this.Column4,
            this.Column9,
            this.Column10,
            this.Column11,
            this.Column23,
            this.Column22});
            this.grdDetail.Font = new System.Drawing.Font("Arial", 8.25F);
            this.grdDetail.Location = new System.Drawing.Point(0, 183);
            this.grdDetail.Name = "grdDetail";
            this.grdDetail.Size = new System.Drawing.Size(794, 279);
            this.grdDetail.TabIndex = 8;
            // 
            // txtMa_KhoN
            // 
            this.txtMa_KhoN.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.txtMa_KhoN.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtMa_KhoN.CheckTextSearched = false;
            this.txtMa_KhoN.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtMa_KhoN.FieldDisplay = "Ten_Kho";
            this.txtMa_KhoN.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMa_KhoN.FoundIsValid = true;
            this.txtMa_KhoN.Location = new System.Drawing.Point(99, 467);
            this.txtMa_KhoN.MaxLength = 32;
            this.txtMa_KhoN.Name = "txtMa_KhoN";
            this.txtMa_KhoN.OldValue = null;
            this.txtMa_KhoN.ReadOnly = true;
            this.txtMa_KhoN.Size = new System.Drawing.Size(118, 20);
            this.txtMa_KhoN.TabIndex = 9;
            this.txtMa_KhoN.TableName = "DMKHO";
            this.txtMa_KhoN.TextDisplay = this.txtTen_KhoN;
            this.txtMa_KhoN.UserTextLength = SmartSoft.AppInstance.TextControlLength.ItemCode;
            this.txtMa_KhoN.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.All;
            this.txtMa_KhoN.Value = global::SmartSoft.ReportForms.FormVTH02BViewer.txtTen_Nh_Vt_Value;
            // 
            // txtTen_KhoN
            // 
            this.txtTen_KhoN.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_KhoN.BackColor = System.Drawing.SystemColors.Control;
            this.txtTen_KhoN.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_KhoN.CheckTextSearched = false;
            this.txtTen_KhoN.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_KhoN.Enabled = false;
            this.txtTen_KhoN.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_KhoN.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_KhoN.Location = new System.Drawing.Point(223, 470);
            this.txtTen_KhoN.Name = "txtTen_KhoN";
            this.txtTen_KhoN.OldValue = null;
            this.txtTen_KhoN.Size = new System.Drawing.Size(559, 13);
            this.txtTen_KhoN.TabIndex = 86;
            this.txtTen_KhoN.UserTextLength = SmartSoft.AppInstance.TextControlLength.None;
            this.txtTen_KhoN.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_KhoN.Value = global::SmartSoft.ReportForms.FormVTH02BViewer.txtTen_Nh_Vt_Value;
            // 
            // lblGhi_Chu
            // 
            this.lblGhi_Chu.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.lblGhi_Chu.AutoSize = true;
            this.lblGhi_Chu.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblGhi_Chu.Location = new System.Drawing.Point(12, 491);
            this.lblGhi_Chu.Name = "lblGhi_Chu";
            this.lblGhi_Chu.Size = new System.Drawing.Size(44, 14);
            this.lblGhi_Chu.TabIndex = 81;
            this.lblGhi_Chu.Text = "Ghi chú";
            // 
            // txtGhi_Chu
            // 
            this.txtGhi_Chu.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtGhi_Chu.CheckTextSearched = false;
            this.txtGhi_Chu.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtGhi_Chu.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtGhi_Chu.Location = new System.Drawing.Point(99, 488);
            this.txtGhi_Chu.MaxLength = 254;
            this.txtGhi_Chu.Name = "txtGhi_Chu";
            this.txtGhi_Chu.OldValue = null;
            this.txtGhi_Chu.ReadOnly = true;
            this.txtGhi_Chu.Size = new System.Drawing.Size(683, 20);
            this.txtGhi_Chu.TabIndex = 10;
            this.txtGhi_Chu.UserTextLength = SmartSoft.AppInstance.TextControlLength.InvoiceDescription;
            this.txtGhi_Chu.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.Right;
            this.txtGhi_Chu.Value = global::SmartSoft.ReportForms.FormVTH02BViewer.txtTen_Nh_Vt_Value;
            // 
            // txtTen_BpX
            // 
            this.txtTen_BpX.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_BpX.BackColor = System.Drawing.SystemColors.Control;
            this.txtTen_BpX.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_BpX.CheckTextSearched = false;
            this.txtTen_BpX.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_BpX.Enabled = false;
            this.txtTen_BpX.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_BpX.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_BpX.Location = new System.Drawing.Point(222, 53);
            this.txtTen_BpX.Name = "txtTen_BpX";
            this.txtTen_BpX.OldValue = null;
            this.txtTen_BpX.Size = new System.Drawing.Size(559, 13);
            this.txtTen_BpX.TabIndex = 102;
            this.txtTen_BpX.UserTextLength = SmartSoft.AppInstance.TextControlLength.None;
            this.txtTen_BpX.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_BpX.Value = global::SmartSoft.ReportForms.FormVTH02BViewer.txtTen_Nh_Vt_Value;
            // 
            // txtMa_BpX
            // 
            this.txtMa_BpX.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtMa_BpX.CheckTextSearched = false;
            this.txtMa_BpX.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtMa_BpX.EmptyIsValid = true;
            this.txtMa_BpX.FieldDisplay = "Ten_Bp";
            this.txtMa_BpX.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMa_BpX.FoundIsValid = true;
            this.txtMa_BpX.Location = new System.Drawing.Point(99, 50);
            this.txtMa_BpX.MaxLength = 32;
            this.txtMa_BpX.Name = "txtMa_BpX";
            this.txtMa_BpX.OldValue = null;
            this.txtMa_BpX.ReadOnly = true;
            this.txtMa_BpX.Size = new System.Drawing.Size(118, 20);
            this.txtMa_BpX.TabIndex = 101;
            this.txtMa_BpX.TableName = "DMBP";
            this.txtMa_BpX.TextDisplay = this.txtTen_BpX;
            this.txtMa_BpX.UserTextLength = SmartSoft.AppInstance.TextControlLength.ItemCode;
            this.txtMa_BpX.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.All;
            this.txtMa_BpX.Value = global::SmartSoft.ReportForms.FormVTH02BViewer.txtTen_Nh_Vt_Value;
            // 
            // lblMa_BpX
            // 
            this.lblMa_BpX.AutoSize = true;
            this.lblMa_BpX.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblMa_BpX.Location = new System.Drawing.Point(12, 53);
            this.lblMa_BpX.Name = "lblMa_BpX";
            this.lblMa_BpX.Size = new System.Drawing.Size(70, 14);
            this.lblMa_BpX.TabIndex = 103;
            this.lblMa_BpX.Text = "Bộ phận giao";
            // 
            // txtTen_CvX
            // 
            this.txtTen_CvX.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_CvX.BackColor = System.Drawing.SystemColors.Control;
            this.txtTen_CvX.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_CvX.CheckTextSearched = false;
            this.txtTen_CvX.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_CvX.Enabled = false;
            this.txtTen_CvX.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_CvX.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_CvX.Location = new System.Drawing.Point(610, 72);
            this.txtTen_CvX.Name = "txtTen_CvX";
            this.txtTen_CvX.OldValue = null;
            this.txtTen_CvX.Size = new System.Drawing.Size(172, 13);
            this.txtTen_CvX.TabIndex = 106;
            this.txtTen_CvX.UserTextLength = SmartSoft.AppInstance.TextControlLength.None;
            this.txtTen_CvX.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_CvX.Value = global::SmartSoft.ReportForms.FormVTH02BViewer.txtTen_Nh_Vt_Value;
            // 
            // txtMa_CvX
            // 
            this.txtMa_CvX.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtMa_CvX.CheckTextSearched = false;
            this.txtMa_CvX.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtMa_CvX.EmptyIsValid = true;
            this.txtMa_CvX.FieldDisplay = "Ten_Cv";
            this.txtMa_CvX.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMa_CvX.Location = new System.Drawing.Point(486, 69);
            this.txtMa_CvX.MaxLength = 32;
            this.txtMa_CvX.Name = "txtMa_CvX";
            this.txtMa_CvX.OldValue = null;
            this.txtMa_CvX.ReadOnly = true;
            this.txtMa_CvX.Size = new System.Drawing.Size(118, 20);
            this.txtMa_CvX.TabIndex = 105;
            this.txtMa_CvX.TableName = "DMCV";
            this.txtMa_CvX.TextDisplay = this.txtTen_CvX;
            this.txtMa_CvX.UserTextLength = SmartSoft.AppInstance.TextControlLength.ItemCode;
            this.txtMa_CvX.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.All;
            this.txtMa_CvX.Value = global::SmartSoft.ReportForms.FormVTH02BViewer.txtTen_Nh_Vt_Value;
            // 
            // lblMa_Cv
            // 
            this.lblMa_Cv.AutoSize = true;
            this.lblMa_Cv.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblMa_Cv.Location = new System.Drawing.Point(409, 72);
            this.lblMa_Cv.Name = "lblMa_Cv";
            this.lblMa_Cv.Size = new System.Drawing.Size(48, 14);
            this.lblMa_Cv.TabIndex = 107;
            this.lblMa_Cv.Text = "Chức vụ";
            // 
            // txtTen_CvN
            // 
            this.txtTen_CvN.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_CvN.BackColor = System.Drawing.SystemColors.Control;
            this.txtTen_CvN.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_CvN.CheckTextSearched = false;
            this.txtTen_CvN.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_CvN.Enabled = false;
            this.txtTen_CvN.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_CvN.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_CvN.Location = new System.Drawing.Point(608, 141);
            this.txtTen_CvN.Name = "txtTen_CvN";
            this.txtTen_CvN.OldValue = null;
            this.txtTen_CvN.Size = new System.Drawing.Size(172, 13);
            this.txtTen_CvN.TabIndex = 121;
            this.txtTen_CvN.UserTextLength = SmartSoft.AppInstance.TextControlLength.None;
            this.txtTen_CvN.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_CvN.Value = global::SmartSoft.ReportForms.FormVTH02BViewer.txtTen_Nh_Vt_Value;
            // 
            // txtMa_CvN
            // 
            this.txtMa_CvN.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtMa_CvN.CheckTextSearched = false;
            this.txtMa_CvN.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtMa_CvN.EmptyIsValid = true;
            this.txtMa_CvN.FieldDisplay = "Ten_Cv";
            this.txtMa_CvN.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMa_CvN.Location = new System.Drawing.Point(486, 138);
            this.txtMa_CvN.MaxLength = 32;
            this.txtMa_CvN.Name = "txtMa_CvN";
            this.txtMa_CvN.OldValue = null;
            this.txtMa_CvN.ReadOnly = true;
            this.txtMa_CvN.Size = new System.Drawing.Size(118, 20);
            this.txtMa_CvN.TabIndex = 120;
            this.txtMa_CvN.TableName = "DMCV";
            this.txtMa_CvN.TextDisplay = this.txtTen_CvN;
            this.txtMa_CvN.UserTextLength = SmartSoft.AppInstance.TextControlLength.ItemCode;
            this.txtMa_CvN.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.All;
            this.txtMa_CvN.Value = global::SmartSoft.ReportForms.FormVTH02BViewer.txtTen_Nh_Vt_Value;
            // 
            // lblMa_CvN
            // 
            this.lblMa_CvN.AutoSize = true;
            this.lblMa_CvN.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblMa_CvN.Location = new System.Drawing.Point(409, 141);
            this.lblMa_CvN.Name = "lblMa_CvN";
            this.lblMa_CvN.Size = new System.Drawing.Size(48, 14);
            this.lblMa_CvN.TabIndex = 124;
            this.lblMa_CvN.Text = "Chức vụ";
            // 
            // txtTen_BpN
            // 
            this.txtTen_BpN.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_BpN.BackColor = System.Drawing.SystemColors.Control;
            this.txtTen_BpN.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_BpN.CheckTextSearched = false;
            this.txtTen_BpN.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_BpN.Enabled = false;
            this.txtTen_BpN.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_BpN.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_BpN.Location = new System.Drawing.Point(222, 119);
            this.txtTen_BpN.Name = "txtTen_BpN";
            this.txtTen_BpN.OldValue = null;
            this.txtTen_BpN.Size = new System.Drawing.Size(559, 13);
            this.txtTen_BpN.TabIndex = 117;
            this.txtTen_BpN.UserTextLength = SmartSoft.AppInstance.TextControlLength.None;
            this.txtTen_BpN.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_BpN.Value = global::SmartSoft.ReportForms.FormVTH02BViewer.txtTen_Nh_Vt_Value;
            // 
            // txtMa_BpN
            // 
            this.txtMa_BpN.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtMa_BpN.CheckTextSearched = false;
            this.txtMa_BpN.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtMa_BpN.EmptyIsValid = true;
            this.txtMa_BpN.FieldDisplay = "Ten_Bp";
            this.txtMa_BpN.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMa_BpN.Location = new System.Drawing.Point(99, 116);
            this.txtMa_BpN.MaxLength = 32;
            this.txtMa_BpN.Name = "txtMa_BpN";
            this.txtMa_BpN.OldValue = null;
            this.txtMa_BpN.ReadOnly = true;
            this.txtMa_BpN.Size = new System.Drawing.Size(118, 20);
            this.txtMa_BpN.TabIndex = 116;
            this.txtMa_BpN.TableName = "DMBP";
            this.txtMa_BpN.TextDisplay = this.txtTen_BpN;
            this.txtMa_BpN.UserTextLength = SmartSoft.AppInstance.TextControlLength.ItemCode;
            this.txtMa_BpN.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.All;
            this.txtMa_BpN.Value = global::SmartSoft.ReportForms.FormVTH02BViewer.txtTen_Nh_Vt_Value;
            // 
            // lblMa_BpN
            // 
            this.lblMa_BpN.AutoSize = true;
            this.lblMa_BpN.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblMa_BpN.Location = new System.Drawing.Point(12, 118);
            this.lblMa_BpN.Name = "lblMa_BpN";
            this.lblMa_BpN.Size = new System.Drawing.Size(74, 14);
            this.lblMa_BpN.TabIndex = 123;
            this.lblMa_BpN.Text = "Bộ phận nhận";
            // 
            // txtTen_DtN
            // 
            this.txtTen_DtN.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_DtN.BackColor = System.Drawing.SystemColors.Control;
            this.txtTen_DtN.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_DtN.CheckTextSearched = false;
            this.txtTen_DtN.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_DtN.Enabled = false;
            this.txtTen_DtN.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_DtN.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_DtN.Location = new System.Drawing.Point(222, 141);
            this.txtTen_DtN.Name = "txtTen_DtN";
            this.txtTen_DtN.OldValue = null;
            this.txtTen_DtN.Size = new System.Drawing.Size(172, 13);
            this.txtTen_DtN.TabIndex = 119;
            this.txtTen_DtN.UserTextLength = SmartSoft.AppInstance.TextControlLength.None;
            this.txtTen_DtN.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_DtN.Value = global::SmartSoft.ReportForms.FormVTH02BViewer.txtTen_Nh_Vt_Value;
            // 
            // txtMa_DtN
            // 
            this.txtMa_DtN.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtMa_DtN.CheckTextSearched = false;
            this.txtMa_DtN.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtMa_DtN.FieldDisplay = "Ten_Dt";
            this.txtMa_DtN.FirstFilter = "Is_Stop = \'1\'";
            this.txtMa_DtN.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMa_DtN.Location = new System.Drawing.Point(99, 138);
            this.txtMa_DtN.MaxLength = 32;
            this.txtMa_DtN.Name = "txtMa_DtN";
            this.txtMa_DtN.OldValue = null;
            this.txtMa_DtN.ReadOnly = true;
            this.txtMa_DtN.Size = new System.Drawing.Size(118, 20);
            this.txtMa_DtN.TabIndex = 118;
            this.txtMa_DtN.TableName = "DMDT";
            this.txtMa_DtN.TextDisplay = this.txtTen_DtN;
            this.txtMa_DtN.UserTextLength = SmartSoft.AppInstance.TextControlLength.ItemCode;
            this.txtMa_DtN.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.All;
            this.txtMa_DtN.Value = global::SmartSoft.ReportForms.FormVTH02BViewer.txtTen_Nh_Vt_Value;
            // 
            // lblMa_DtN
            // 
            this.lblMa_DtN.AutoSize = true;
            this.lblMa_DtN.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblMa_DtN.Location = new System.Drawing.Point(12, 141);
            this.lblMa_DtN.Name = "lblMa_DtN";
            this.lblMa_DtN.Size = new System.Drawing.Size(63, 14);
            this.lblMa_DtN.TabIndex = 122;
            this.lblMa_DtN.Text = "Người nhận";
            // 
            // Column3
            // 
            this.Column3.DataPropertyName = "Ma_Ts";
            this.Column3.HeaderText = "Mã tài sản";
            this.Column3.MinimumWidth = 100;
            this.Column3.Name = "Column3";
            // 
            // So_Hieu
            // 
            this.So_Hieu.DataPropertyName = "So_Hieu";
            this.So_Hieu.HeaderText = "Số Serial";
            this.So_Hieu.Name = "So_Hieu";
            // 
            // Column4
            // 
            this.Column4.DataPropertyName = "Ten_Ts";
            this.Column4.HeaderText = "Tên tài sản";
            this.Column4.MinimumWidth = 160;
            this.Column4.Name = "Column4";
            this.Column4.Width = 167;
            // 
            // Column9
            // 
            this.Column9.DataPropertyName = "Ma_Vt";
            dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
            this.Column9.DefaultCellStyle = dataGridViewCellStyle1;
            this.Column9.DestinationFields = "Ten_Vt, Dvt";
            this.Column9.DisabledForeColor = System.Drawing.Color.Blue;
            this.Column9.EmptyIsValid = true;
            this.Column9.HeaderText = "Mã phụ tùng";
            this.Column9.MinimumWidth = 100;
            this.Column9.Name = "Column9";
            this.Column9.ReadOnly = true;
            this.Column9.Resizable = System.Windows.Forms.DataGridViewTriState.True;
            this.Column9.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
            this.Column9.SourceFields = "Ten_Vt, Dvt";
            this.Column9.TableName = "DMVT";
            this.Column9.UserTextLength = SmartSoft.AppInstance.TextControlLength.ItemCode;
            this.Column9.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.Right;
            // 
            // Column10
            // 
            this.Column10.DataPropertyName = "Ten_Vt";
            this.Column10.HeaderText = "Tên phụ tùng";
            this.Column10.MinimumWidth = 140;
            this.Column10.Name = "Column10";
            this.Column10.ReadOnly = true;
            this.Column10.Width = 140;
            // 
            // Column11
            // 
            this.Column11.DataPropertyName = "Dvt";
            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
            this.Column11.DefaultCellStyle = dataGridViewCellStyle2;
            this.Column11.DisabledForeColor = System.Drawing.Color.Blue;
            this.Column11.HeaderText = "Đvt";
            this.Column11.MinimumWidth = 45;
            this.Column11.Name = "Column11";
            this.Column11.ReadOnly = true;
            this.Column11.Resizable = System.Windows.Forms.DataGridViewTriState.True;
            this.Column11.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
            this.Column11.UserTextLength = SmartSoft.AppInstance.TextControlLength.None;
            this.Column11.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.Right;
            this.Column11.Width = 45;
            // 
            // Column23
            // 
            this.Column23.DataPropertyName = "Ghi_Chu";
            this.Column23.HeaderText = "Mô tả";
            this.Column23.Name = "Column23";
            this.Column23.ReadOnly = true;
            this.Column23.Resizable = System.Windows.Forms.DataGridViewTriState.True;
            this.Column23.Width = 109;
            // 
            // Column22
            // 
            this.Column22.DataPropertyName = "So_Luong9";
            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
            this.Column22.DefaultCellStyle = dataGridViewCellStyle3;
            this.Column22.HeaderText = "Số lượng";
            this.Column22.MinimumWidth = 90;
            this.Column22.Name = "Column22";
            this.Column22.ReadOnly = true;
            this.Column22.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
            this.Column22.UserTextNumericFormat = SmartSoft.AppInstance.TextNumericFormat.Quantity;
            this.Column22.Width = 90;
            this.Column22.ZeroIsValid = true;
            // 
            // FormCTBGViewer
            // 
            this.ClientSize = new System.Drawing.Size(794, 532);
            this.Controls.Add(this.txtTen_CvN);
            this.Controls.Add(this.txtMa_CvN);
            this.Controls.Add(this.lblMa_CvN);
            this.Controls.Add(this.txtTen_BpN);
            this.Controls.Add(this.txtMa_BpN);
            this.Controls.Add(this.lblMa_BpN);
            this.Controls.Add(this.txtTen_DtN);
            this.Controls.Add(this.txtMa_DtN);
            this.Controls.Add(this.lblMa_DtN);
            this.Controls.Add(this.txtTen_CvX);
            this.Controls.Add(this.txtMa_CvX);
            this.Controls.Add(this.lblMa_Cv);
            this.Controls.Add(this.txtTen_BpX);
            this.Controls.Add(this.txtMa_BpX);
            this.Controls.Add(this.lblMa_BpX);
            this.Controls.Add(this.lblMa_KhoN);
            this.Controls.Add(this.txtDia_Chi);
            this.Controls.Add(this.txtTen_Dt);
            this.Controls.Add(this.txtMa_Dt);
            this.Controls.Add(this.lblDia_Chi);
            this.Controls.Add(this.lblMa_Dt);
            this.Controls.Add(this.txtDesc_EN);
            this.Controls.Add(this.txtGhi_Chu);
            this.Controls.Add(this.txtDien_Giai);
            this.Controls.Add(this.txtTen_KhoN);
            this.Controls.Add(this.lblGhi_Chu);
            this.Controls.Add(this.lblDesc_EN);
            this.Controls.Add(this.lblDien_Giai);
            this.Controls.Add(this.txtMa_KhoN);
            this.Controls.Add(this.grdDetail);
            this.Name = "FormCTBGViewer";
            this.Controls.SetChildIndex(this.grdDetail, 0);
            this.Controls.SetChildIndex(this.lblPhan_Loai, 0);
            this.Controls.SetChildIndex(this.txtSo_Ct, 0);
            this.Controls.SetChildIndex(this.txtNgay_Ps, 0);
            this.Controls.SetChildIndex(this.txtNgay_Ct, 0);
            this.Controls.SetChildIndex(this.txtMa_Loai1, 0);
            this.Controls.SetChildIndex(this.txtMa_Loai2, 0);
            this.Controls.SetChildIndex(this.txtMa_Loai3, 0);
            this.Controls.SetChildIndex(this.txtMa_KhoN, 0);
            this.Controls.SetChildIndex(this.lblDien_Giai, 0);
            this.Controls.SetChildIndex(this.lblDesc_EN, 0);
            this.Controls.SetChildIndex(this.lblGhi_Chu, 0);
            this.Controls.SetChildIndex(this.txtTen_KhoN, 0);
            this.Controls.SetChildIndex(this.txtDien_Giai, 0);
            this.Controls.SetChildIndex(this.txtGhi_Chu, 0);
            this.Controls.SetChildIndex(this.txtDesc_EN, 0);
            this.Controls.SetChildIndex(this.lblMa_Dt, 0);
            this.Controls.SetChildIndex(this.lblDia_Chi, 0);
            this.Controls.SetChildIndex(this.txtMa_Dt, 0);
            this.Controls.SetChildIndex(this.txtTen_Dt, 0);
            this.Controls.SetChildIndex(this.txtDia_Chi, 0);
            this.Controls.SetChildIndex(this.lblMa_KhoN, 0);
            this.Controls.SetChildIndex(this.lblMa_BpX, 0);
            this.Controls.SetChildIndex(this.txtMa_BpX, 0);
            this.Controls.SetChildIndex(this.txtTen_BpX, 0);
            this.Controls.SetChildIndex(this.lblMa_Cv, 0);
            this.Controls.SetChildIndex(this.txtMa_CvX, 0);
            this.Controls.SetChildIndex(this.txtTen_CvX, 0);
            this.Controls.SetChildIndex(this.lblMa_DtN, 0);
            this.Controls.SetChildIndex(this.txtMa_DtN, 0);
            this.Controls.SetChildIndex(this.txtTen_DtN, 0);
            this.Controls.SetChildIndex(this.lblMa_BpN, 0);
            this.Controls.SetChildIndex(this.txtMa_BpN, 0);
            this.Controls.SetChildIndex(this.txtTen_BpN, 0);
            this.Controls.SetChildIndex(this.lblMa_CvN, 0);
            this.Controls.SetChildIndex(this.txtMa_CvN, 0);
            this.Controls.SetChildIndex(this.txtTen_CvN, 0);
            ((System.ComponentModel.ISupportInitialize)(this.grdDetail)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        internal override void OnResetControls()
        {
            base.DetailGridBrowser = this.grdDetail;
            int num = 0;
            if (!base.SSInvoiceParameters.BilingualUsed)
            {
                this.lblDesc_EN.Visible = false;
                this.txtDesc_EN.Visible = false;
                this.txtDien_Giai.Width = (this.txtDesc_EN.Left + this.txtDesc_EN.Width) - this.txtDien_Giai.Left;
                this.txtDien_Giai.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
            }
            //if (!AppInstance.LocationCtrl)
            //{
            //    base.DetailGridBrowser.Columns[6].Visible = false;
            //}
            //if (!AppInstance.LotNumberCtrl)
            //{
            //    base.DetailGridBrowser.Columns[7].Visible = false;
            //}
            //if (!AppInstance.DeadLineCtrl)
            //{
            //    base.DetailGridBrowser.Columns[8].Visible = false;
            //}
            //if (!AppInstance.QualityCtrl)
            //{
            //    base.DetailGridBrowser.Columns[9].Visible = false;
            //}
            //if (!AppInstance.DampCtrl)
            //{
            //    base.DetailGridBrowser.Columns[10].Visible = false;
            //}
            //if (!AppInstance.AlcoholCtrl)
            //{
            //    base.DetailGridBrowser.Columns[11].Visible = false;
            //}
            //if (!AppInstance.LocationCtrl || (base.SSInvoiceParameters.InvoiceCode != "PWDC"))
            //{
            //    base.DetailGridBrowser.Columns[12].Visible = false;
            //}
            //if (base.SSInvoiceParameters.FreeFields <= 0)
            {
                num = base.txtMa_Loai1.Top - this.txtGhi_Chu.Top;
                this.lblMa_KhoN.Top += num;
                this.txtMa_KhoN.Top += num;
                this.txtTen_KhoN.Top += num;
                this.lblGhi_Chu.Top += num;
                this.txtGhi_Chu.Top += num;
                this.grdDetail.Height += num;
            }
            if (base.SSInvoiceParameters.InvoiceCode != "PWDC")
            {
                num = this.txtGhi_Chu.Top - this.txtMa_KhoN.Top;
                this.lblMa_KhoN.Visible = false;
                this.txtMa_KhoN.Visible = false;
                this.txtTen_KhoN.Visible = false;
                this.grdDetail.Height += num;
            }
            base.OnResetControls();
        }

        protected override void OnResize(EventArgs e)
        {
            base.OnResize(e);
            //if (this.txtOng_Ba != null)
            //{
            //    int num = base.ClientSize.Width - 0xcb;
            //    this.txtOng_Ba.Width = num / 2;
            //    this.txtDia_Chi.Left = (this.txtOng_Ba.Left + this.txtOng_Ba.Width) + 0x5c;
            //    this.txtDia_Chi.Width = num - this.txtOng_Ba.Width;
            //    this.lblDia_Chi.Left = (this.txtDia_Chi.Left - this.lblDia_Chi.Width) - 6;
            //    if ((base.SSInvoiceParameters != null) && base.SSInvoiceParameters.BilingualUsed)
            //    {
            //        this.txtDien_Giai.Width = this.txtOng_Ba.Width;
            //        this.txtDesc_EN.Left = this.txtDia_Chi.Left;
            //        this.txtDesc_EN.Width = this.txtDia_Chi.Width;
            //        this.lblDesc_EN.Left = (this.txtDesc_EN.Left - this.lblDesc_EN.Width) - 6;
            //    }
            //}
        }

        internal override void OnShow()
        {
            base.OnShow();

            this.txtMa_Dt.Value = base.LocalMasterRow["Ma_Dt"];
            this.txtTen_Dt.Value = base.LocalMasterRow["Ten_Dt"];
            this.txtMa_BpX.Value = base.LocalMasterRow["Ma_BpX"];
            this.txtTen_BpX.Value = base.LocalMasterRow["Ten_BpX"];
            this.txtMa_CvX.Value = base.LocalMasterRow["Ma_CvX"];
            this.txtTen_CvX.Value = base.LocalMasterRow["Ten_CvX"];
            this.txtMa_DtN.Value = base.LocalMasterRow["Ma_DtN"];
            this.txtTen_DtN.Value = base.LocalMasterRow["Ten_DtN"];
            this.txtMa_BpN.Value = base.LocalMasterRow["Ma_BpN"];
            this.txtTen_BpN.Value = base.LocalMasterRow["Ten_BpN"];
            this.txtMa_CvN.Value = base.LocalMasterRow["Ma_CvN"];
            this.txtTen_CvN.Value = base.LocalMasterRow["Ten_CvN"];

            this.txtDia_Chi.Value = base.LocalMasterRow["Dia_Chi"];
            this.txtDien_Giai.Value = base.LocalMasterRow["Dien_Giai"];
            this.txtDesc_EN.Value = base.LocalMasterRow["Desc_EN"];
            this.txtMa_KhoN.Value = base.LocalMasterRow["Ma_KhoN"];
            this.txtTen_KhoN.Value = base.LocalMasterRow["Ten_KhoN"];
            this.txtGhi_Chu.Value = base.LocalMasterRow["Ghi_Chu"];
        }
    }
}

